#include<stdio.h>
int main() {
	unsigned long head, back, chickens, rabbits;
	scanf("%lu %lu", &head, &back);
	rabbits = (back - 2 * head) / 2;
	chickens = head - rabbits;
	if (2 * head > back || head < rabbits)
		printf("No solution!");
	else if (2 * chickens + 4 * rabbits == back)
		printf("chickens = %lu; rabbits = %lu", chickens, rabbits);
	else
		printf("No solution!");
	return 0;
}